//
//  WSOrderTuiKuanViewController.m
//  FD
//
//  Created by Yasin on 2018/10/23.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//  退款、售后

#import "WSOrderTuiKuanViewController.h"
#import "WSOrderCell.h"
#import "WSOrderDetailRefundController.h"
@interface WSOrderTuiKuanViewController ()

@end

@implementation WSOrderTuiKuanViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //退款、售后
//    [self loadOrderDataWithStatus:@[@6,@7]];
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.tableView.mj_header beginRefreshing];
}


- (void)loadOrderDataWithStatus:(NSArray<NSNumber *> *)status {
    [super loadOrderDataWithStatus:@[@6,@7]];
}

//点击cell
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    WSOrderModel *model =   self.dataArr[indexPath.section];
    FDLog(@"%@",model);
    
    WSOrderDetailRefundController *refundVC  = [[WSOrderDetailRefundController alloc] init];
    refundVC.orderId = model.orderId;
    [self.navigationController pushViewController:refundVC animated:YES];
}

@end
